package table100;

import org.apache.log4j.Logger;

import uci.rt.ccr1c.engine.matrix.Mat;
import uci.utils.files.FileParserException;
import utils.Grid100Reader;
import utils.LoagCfg;

public class Generator100
{

	protected static Logger log;

	/**
	 * @param args
	 * @throws Exception 
	 */
	public static void main(String[] args) throws Exception
	{
		
		LoagCfg cfg = new LoagCfg(args);
		log = Logger.getRootLogger();
		cfg.process();

		String dataPath=cfg.getString("DATA_PATH","C:/data/");
		System.out.println("PATH="+dataPath);

		int rows=cfg.getInteger("ROWS",10);
		System.out.println("ROWS="+rows);
		
		int cols=cfg.getInteger("COLS",10);
		System.out.println("COLS="+cols);
		
		
		
		loadGeneratedTables(dataPath, rows, cols);
		GenerateTables();

	}

	private static void GenerateTables()
	{
		// TODO Auto-generated method stub
		
	}

	private static void loadGeneratedTables(String dataPath, int rows, int cols) throws FileParserException
	{
		Grid100Reader grid100Reader = new Grid100Reader(dataPath, rows, cols);
		grid100Reader.process();
		
		Mat[] grids= grid100Reader.get();
		
	}

}
